import { instanceaxios } from '@/network/requets'

// 所有的影城信息
export function cinemaList(ticketFlag = 1, cityId) {
  return instanceaxios({
    url: '/gateway',
    headers: {
      'X-Host': 'mall.film-ticket.cinema.list'
    },
    params: {
      cityId,
      ticketFlag,
      k: 5109090
    }
  })
}
// 距离最近的影城信息
export function cinemaReommend(cityId) {
  return instanceaxios({
    url: '/gateway',
    headers: {
      'X-Host': 'mall.film-ticket.cinema.recommend'
    },
    params: {
      cityId,
      k: 5109090
    }
  })
}

// 详细的影城信息
export function cinemaShowFilm(cinemaId) {
  return instanceaxios({
    url: '/gateway',
    headers: {
      'X-Host': 'mall.film-ticket.film.cinema-show-film'
    },
    params: {
      cinemaId,
      k: 5109090
    }
  })
}

// 影城电影的信息相关
export function cinemaInfo(cinemaId) {
  return instanceaxios({
    url: '/gateway',
    headers: {
      'X-Host': 'mall.film-ticket.cinema.info'
    },
    params: {
      cinemaId,
      k: 5109090
    }
  })
}

// 上映信息相关
export function scheduleList(date, filmId, cinemaId) {
  return instanceaxios({
    url: '/gateway',
    headers: {
      'X-Host': 'mall.film-ticket.schedule.list'
    },
    params: {
      filmId,
      cinemaId,
      date,
      k: 5109090
    }
  })
}

//
